<template>
	<view class="content"  @touchmove.stop.prevent="" v-if="show>0">
		<view class="center">
			<view class="top">
				<view class="msg">
					亲！您有{{number}}笔订单需要核对金额，请尽快核对,已免影响您正常结算！
				</view>
				<view class="btn" @click="confirm">
					立即前往
				</view>
			</view>
			<view class="bottom" @click="cancel">
				
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		name:'lineOrder',
		props:{
			number:{
				type:[Number,String],
				default:0,
			}
		},
		data(){
			return{
				show:0,
			}
		},
		watch:{
			number(val){
				this.show=val
			}
		},
		methods:{
			confirm(){
				this.$emit('confirm')
			},
			cancel(){
				this.$emit('cancel')
			},
		}
	}
</script>

<style lang="scss" scoped>
	.content{
		position: fixed;
		width: 100%;
		height: 100%;
		top: 0;
		left: 0;
		z-index: 100;
		transition:visibility 200ms ease-in;
		background-color: rgba(0, 0, 0, 0.38);
		.center{
			width: 540rpx;
			height: 758rpx;
			// background-size: 100%;
			// background-image: url('../../../static/img/line-order/line-order.png');
			position: absolute;
			z-index: 99;
			top: 50%;
			left: 50%;
			transform: translate(-50%, -50%) ;
			transition: transform 0.3s;
			width: 540rpx;
			box-sizing: border-box;
			border-radius: 20rpx;
			// background-color: #fff;
			overflow: hidden;
			transition: opacity 200ms ease-in;
			// padding-top: 30rpx;
			display: flex;
			flex-direction: column;
			justify-content: space-between;
			align-items: center;
			.top{
				width: 540rpx;
				height: 620rpx;
				background-image: url('../../../static/img/line-order/line-order.png');
				background-size: 100%;
				display: flex;
				flex-direction: column;
				justify-content: flex-end;
				align-items: center;
				padding: 78rpx 26rpx;
				box-sizing: border-box;
				.msg{
					width: 486rpx;
					// height: 114rpx;
					font-size: 28rpx;
					text-align: center;
					color: #FF6A00;
					line-height: 48rpx;
					margin-bottom: 58rpx;
				}
				.btn{
					width: 320rpx;
					height: 72rpx;
					background: #3C8EFF;
					border-radius: 38rpx;
					font-size: 32rpx;
					font-weight: 500;
					color: #FFFFFF;
					line-height: 72rpx;
					text-align: center;
				}
			}
			.bottom{
				width: 72rpx;
				height: 72rpx;
				border-radius: 50%;
				background-image: url('../../../static/img/line-order/cancel.png');
				background-size: 100%;
				// background-color: red;
			}
		}
	}
</style>